import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
  const off = ref(false)
  const change = ()=>{
    off.value = !off.value
  }
  return { off, change }
},{
  persist:{
    enable:true,
    storage:window.localStorage,
    key:'counter',
    paths:['off']

  }
})